import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
const TimeKey = 'vue_admin__Time'

export function getToken () {
  return Cookies.get( TokenKey )
}

export function setToken ( token ) {
  Cookies.set( TimeKey, Date.now() )
  return Cookies.set( TokenKey, token )
}

export function removeToken () {
  return Cookies.remove( TokenKey )
}
//时间
export function getTimeKey () {
  return Cookies.get( TimeKey )
}